package org.example;

import com.google.inject.Singleton;
import org.example.guice.GuiceApplicationContext;
import org.example.handle.AbstractHandle;
import org.example.handle.tess.TessOcrHandle;
import org.example.http.SimpleHttpRequest;

import javax.inject.Inject;
import java.nio.charset.StandardCharsets;
import java.util.Map;
import java.util.Set;

@Singleton
public class GuiceDemo {

    @Inject
    private Map<String, AbstractHandle> handleMap;
    @Inject
    private Set<AbstractHandle> handles;


    public static void main(String[] args) {
        Object a = null;
        System.out.println((String) a);

        System.out.println(SimpleHttpRequest.doGet("https://www.baidu.com"));
//        GuiceApplicationContext context = new GuiceApplicationContext(GuiceDemo.class).run();
//        TessOcrHandle bean = context.getBean(TessOcrHandle.class);
//        System.out.println(bean);
    }
}
